# -*- python -*-
#:kivy 1.0


## <Popup>:
##     _container: container
##     canvas:
##         Clear
##         Color:
##             rgba: 0, 0, 0, self._anim_alpha * .7
##         Rectangle:
##             size: self._window.size if self._window else (0, 0)

##         Color:
##             rgba: white
##         Rectangle:
##             pos: self.pos
##             size: self.size

##     GridLayout:
##         padding: 12
##         cols: 1
##         size_hint: None, None
##         pos: root.pos
##         size: root.size

##         Label:
##             text: root.title
##             color: redwine
##             size_hint_y: None
##             height: self.texture_size[1] + 16
##             text_size: self.width - 16, None

##         Widget:
##             size_hint_y: None
##             height: 4
##             canvas:
##                 Color:
##                     rgba: purple
##                 Rectangle:
##                     pos: self.x, self.y + 1
##                     size: self.width, 2
##         BoxLayout:
##             id: container

    
<WineEditWidget>:
    editorList: _editorList
    orientation: 'vertical'
    MyListView:
        id: _editorList
        num_columns: 2
        none_selectable: True
        show_slider: guiCommon.commonEvents.desktopMode
    LeVinButtonBar:
        size_hint: (1,None)
        LeVinButton:
            text: _('Cancel')
            on_release: guiCommon.commonEvents.dispatch('on_end_edit_bottle',None,False)
        LeVinButton:
            text: _('Save')
            on_release: guiCommon.commonEvents.dispatch('on_end_edit_bottle',root.current_bottle,True) 
        LeVinButton:
            text: _('Save & add new')
            on_release: guiCommon.commonEvents.dispatch('on_end_edit_bottle',root.current_bottle,True, True) 

<GroupAppLabel>:
    #valign: 'middle'
    halign: 'center'
    color: 0,0,0,1
    canvas.before:
        Clear
        Color:
            rgba: white
        Rectangle:
            pos: self.pos
            size: self.size
## <WineEditWindowContent>:

##     WineEditWidget:
##         id: container
